package com.example.mapper;

import com.example.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: bjc
 * Date: 2025-07-10
 * Time: 21:41
 */
@Mapper
public interface ArticleInfoXMLMapper {

    /**
     * 多表查询
     * @param id
     * @return
     */
    @Select("select * from article_info where id = #{id}")
    List<ArticleInfo> selectArticleAndUserById(Integer id);

    /**
     * 查询数据
     */
    List<ArticleInfo> selectAll();
}
